package org.example.clouddemo.feign;

import org.example.clouddemo.bean.common.param.PayParam;
import org.example.common.response.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-pay", path = "/api/app/pay")
public interface PayFeignClient {
    @PostMapping("checkPayable")
    public ApiResult checkPayable(@Validated @RequestBody PayParam param);
}
